﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameServer.Tools
{
    public class Logger
    {
        public static void Log(LevelType lt, string msg)
        {
            Console.WriteLine("[" + lt + "] " + msg);
            GameServer.Server.LogWriter.WriteLine("[" + lt + "] " + msg);
            GameServer.Server.LogWriter.Flush();
        }
    }

    public enum LevelType
    {
        DEBUG, INFO, WARNING, SEVERE, CRITICAL
    }
}
